public class TestMiniApplicationContext {
    public static void main(String[] args) throws Exception {
        MiniApplicationContext context = new MiniApplicationContext("beans.xml");
        MyClass myClass = (MyClass) context.getBean("myClass");
        // do something with myClass...
        System.out.println(myClass);
    }
}